package com.youlv.yl.entity.hotel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author fenghe
 * @since 2022-01-19
 */
@Data
@NoArgsConstructor
@TableName("h_hotelCart_item")
@ApiModel(value = "HotelcartItem对象", description = "")
public class HotelCartItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    @TableField("cid")
    private Long cid;

    @TableField("hotelId")
    private Integer hotelId;

    @TableField("houseType")
    private String houseType;

    @TableField("num")
    private Integer num;

    @TableField("joinPrice")
    private Double joinPrice;

    @TableField("ctime")
    private Date ctime;

    public HotelCartItem(Long cid, Integer hotelId, String houseType, Integer num, Double joinPrice, Date ctime) {
        this.cid = cid;
        this.hotelId = hotelId;
        this.houseType = houseType;
        this.num = num;
        this.joinPrice = joinPrice;
        this.ctime = new Date();
    }
}
